package com.gpay.erp.services.purchase;

import com.gpay.erp.core.Services;
import com.gpay.erp.services.purchase.bean.*;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/10/22 0022.
 */
@Service
public interface PaymentOrderService extends Services<PaymentOrder> {


    /**
     * 生成付款单代码
     * @return
     */
    public String getPaymentOrderNumber();

    int savePaymentOrderSubs(PaymentOrder paymentOrder, List<PaymentOrderSub> paymentOrderSubs);

    int saveUpdatePaymentOrderSubs(PaymentOrder paymentOrder, PaymentOrder paymentOrder1, PaidApplication paidApplication, List<PaidApplicationSub> paidApplicationSubs, List<Contract> contracts);
}
